module.exports = app => {
  const controller = require("../controllers/category.controller.js");

  const router = require("express").Router();


  router.post("/app/list", controller.list);
  router.get("/app/getDetail", controller.getDetail);




  router.post("/admin/create", controller.create);
  router.get("/admin/del", controller.del);
  router.post("/admin/update", controller.update);
  router.get("/admin/getDetail", controller.getDetail);
  router.post("/admin/list", controller.list);

  app.use('/api/category', router);
};
